package com.wang.doc;

import org.springframework.stereotype.Component;


@Component
public class ESBaseQuery {
    private String fieldName;   //查询哪个字段
    private String fieldValue; //查询的内容
    private String queryName;   //用什么条件查询：如range ,term ..
    private String whereType="must";//must,should,must not , filter

    public ESBaseQuery() {
    }

    public ESBaseQuery(String fieldName, String fieldValue, String queryName, String whereType) {
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
        this.queryName = queryName;
        this.whereType = whereType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(String fieldValue) {
        this.fieldValue = fieldValue;
    }

    public String getQueryName() {
        return queryName;
    }

    public void setQueryName(String queryName) {
        this.queryName = queryName;
    }

    public String getWhereType() {
        return whereType;
    }

    public void setWhereType(String whereType) {
        this.whereType = whereType;
    }
}
